<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>yatter.main</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="yatter-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="yatter-module.html">Package&nbsp;yatter</a> ::
        Module&nbsp;main
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="yatter.main-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="yatter.main-module.html">Module yatter.main</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-docstring">@newfield project: Project </tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-docstring">@project: yatter</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-docstring">@newfield description: Description </tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-docstring">@description: Twitter Client, based on Python 2.5</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-docstring">@Author: U{Andreas del Galdo&lt;mailto:andreas.delgaldo@mac.com&gt;}</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-docstring">@summary: The Main Module for loading the complete yatter-framework</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-docstring">          and get the connection to the twitter service.</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Package yatter=yatter-module.html"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-0', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Package yatter.tools=yatter.tools-module.html"><a title="yatter.tools" class="py-name" href="#" onclick="return doclink('link-1', 'tools', 'link-1');">tools</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Module yatter.tools.network=yatter.tools.network-module.html"><a title="yatter.tools.network" class="py-name" href="#" onclick="return doclink('link-2', 'network', 'link-2');">network</a></tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-3" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-3', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Package yatter.twitter_api=yatter.twitter_api-module.html"><a title="yatter.twitter_api" class="py-name" href="#" onclick="return doclink('link-4', 'twitter_api', 'link-4');">twitter_api</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Module yatter.twitter_api.interface=yatter.twitter_api.interface-module.html"><a title="yatter.twitter_api.interface" class="py-name" href="#" onclick="return doclink('link-5', 'interface', 'link-5');">interface</a></tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-6" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-6', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="yatter.twitter_api" class="py-name" href="#" onclick="return doclink('link-7', 'twitter_api', 'link-4');">twitter_api</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Variable yatter.main.tweet=yatter.main-module.html#tweet,Module yatter.twitter_api.tweet=yatter.twitter_api.tweet-module.html,Class yatter.twitter_api.tweet.tweet=yatter.twitter_api.tweet.tweet-class.html"><a title="yatter.main.tweet
yatter.twitter_api.tweet
yatter.twitter_api.tweet.tweet" class="py-name" href="#" onclick="return doclink('link-8', 'tweet', 'link-8');">tweet</a></tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-9" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-9', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Package yatter.storage=yatter.storage-module.html"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-10', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Module yatter.storage.store_disk=yatter.storage.store_disk-module.html"><a title="yatter.storage.store_disk" class="py-name" href="#" onclick="return doclink('link-11', 'store_disk', 'link-11');">store_disk</a></tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-12" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-12', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-13', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Module yatter.storage.store_sqlite=yatter.storage.store_sqlite-module.html"><a title="yatter.storage.store_sqlite" class="py-name" href="#" onclick="return doclink('link-14', 'store_sqlite', 'link-14');">store_sqlite</a></tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-comment">#set logging</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">import</tt> <tt class="py-name">logging</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">basicConfig</tt><tt class="py-op">(</tt><tt class="py-name">level</tt><tt class="py-op">=</tt><tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">DEBUG</tt><tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"><tt class="py-comment">#yatter.tools.network.configConnection("http://53.191.69.19", "8080", None, None)</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt id="link-15" class="py-name" targets="Variable yatter.main.new_tweets=yatter.main-module.html#new_tweets"><a title="yatter.main.new_tweets" class="py-name" href="#" onclick="return doclink('link-15', 'new_tweets', 'link-15');">new_tweets</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"><tt id="link-16" class="py-name"><a title="yatter.main.new_tweets" class="py-name" href="#" onclick="return doclink('link-16', 'new_tweets', 'link-15');">new_tweets</a></tt> <tt class="py-op">=</tt> <tt id="link-17" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-17', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="yatter.twitter_api" class="py-name" href="#" onclick="return doclink('link-18', 'twitter_api', 'link-4');">twitter_api</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="yatter.twitter_api.interface" class="py-name" href="#" onclick="return doclink('link-19', 'interface', 'link-5');">interface</a></tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Function yatter.twitter_api.interface.createTweets()=yatter.twitter_api.interface-module.html#createTweets"><a title="yatter.twitter_api.interface.createTweets" class="py-name" href="#" onclick="return doclink('link-20', 'createTweets', 'link-20');">createTweets</a></tt><tt class="py-op">(</tt><tt id="link-21" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-21', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="yatter.twitter_api" class="py-name" href="#" onclick="return doclink('link-22', 'twitter_api', 'link-4');">twitter_api</a></tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="yatter.twitter_api.interface" class="py-name" href="#" onclick="return doclink('link-23', 'interface', 'link-5');">interface</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Function yatter.twitter_api.interface.getPublicTimeline()=yatter.twitter_api.interface-module.html#getPublicTimeline"><a title="yatter.twitter_api.interface.getPublicTimeline" class="py-name" href="#" onclick="return doclink('link-24', 'getPublicTimeline', 'link-24');">getPublicTimeline</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"><tt id="link-25" class="py-name" targets="Variable yatter.main.db_connection=yatter.main-module.html#db_connection"><a title="yatter.main.db_connection" class="py-name" href="#" onclick="return doclink('link-25', 'db_connection', 'link-25');">db_connection</a></tt> <tt class="py-op">=</tt> <tt id="link-26" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-26', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-27', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="yatter.storage.store_sqlite" class="py-name" href="#" onclick="return doclink('link-28', 'store_sqlite', 'link-14');">store_sqlite</a></tt><tt class="py-op">.</tt><tt class="py-name">connectToDatabase</tt><tt class="py-op">(</tt><tt class="py-string">"storage.yat"</tt><tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt id="link-29" class="py-name"><a title="yatter.main.tweet
yatter.twitter_api.tweet
yatter.twitter_api.tweet.tweet" class="py-name" href="#" onclick="return doclink('link-29', 'tweet', 'link-8');">tweet</a></tt> <tt class="py-keyword">in</tt> <tt id="link-30" class="py-name"><a title="yatter.main.new_tweets" class="py-name" href="#" onclick="return doclink('link-30', 'new_tweets', 'link-15');">new_tweets</a></tt><tt class="py-op">:</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">    <tt id="link-31" class="py-name" targets="Variable yatter.main.theTweet=yatter.main-module.html#theTweet"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-31', 'theTweet', 'link-31');">theTweet</a></tt> <tt class="py-op">=</tt> <tt id="link-32" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-32', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="yatter.twitter_api" class="py-name" href="#" onclick="return doclink('link-33', 'twitter_api', 'link-4');">twitter_api</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="yatter.main.tweet
yatter.twitter_api.tweet
yatter.twitter_api.tweet.tweet" class="py-name" href="#" onclick="return doclink('link-34', 'tweet', 'link-8');">tweet</a></tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="yatter.main.tweet
yatter.twitter_api.tweet
yatter.twitter_api.tweet.tweet" class="py-name" href="#" onclick="return doclink('link-35', 'tweet', 'link-8');">tweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">    <tt id="link-36" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-36', 'theTweet', 'link-31');">theTweet</a></tt> <tt class="py-op">=</tt> <tt id="link-37" class="py-name"><a title="yatter.main.tweet
yatter.twitter_api.tweet
yatter.twitter_api.tweet.tweet" class="py-name" href="#" onclick="return doclink('link-37', 'tweet', 'link-8');">tweet</a></tt> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">    <tt id="link-38" class="py-name" targets="Variable yatter.main.user_image=yatter.main-module.html#user_image"><a title="yatter.main.user_image" class="py-name" href="#" onclick="return doclink('link-38', 'user_image', 'link-38');">user_image</a></tt> <tt class="py-op">=</tt> <tt id="link-39" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-39', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-40', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-41" class="py-name"><a title="yatter.storage.store_disk" class="py-name" href="#" onclick="return doclink('link-41', 'store_disk', 'link-11');">store_disk</a></tt><tt class="py-op">.</tt><tt id="link-42" class="py-name" targets="Function yatter.storage.store_disk.loadImage()=yatter.storage.store_disk-module.html#loadImage"><a title="yatter.storage.store_disk.loadImage" class="py-name" href="#" onclick="return doclink('link-42', 'loadImage', 'link-42');">loadImage</a></tt><tt class="py-op">(</tt><tt class="py-string">'cache'</tt><tt class="py-op">,</tt><tt id="link-43" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-43', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Method yatter.twitter_api.tweet.tweet.getUser()=yatter.twitter_api.tweet.tweet-class.html#getUser"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-44', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'profile_image_url'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt id="link-45" class="py-name"><a title="yatter.main.user_image" class="py-name" href="#" onclick="return doclink('link-45', 'user_image', 'link-38');">user_image</a></tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">        <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"yatter.main.__init__()::CACHING_USER_IMAGE"</tt><tt class="py-op">)</tt> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt id="link-46" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-46', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-47', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="yatter.storage.store_disk" class="py-name" href="#" onclick="return doclink('link-48', 'store_disk', 'link-11');">store_disk</a></tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Function yatter.storage.store_disk.storeImage()=yatter.storage.store_disk-module.html#storeImage"><a title="yatter.storage.store_disk.storeImage" class="py-name" href="#" onclick="return doclink('link-49', 'storeImage', 'link-49');">storeImage</a></tt><tt class="py-op">(</tt><tt class="py-string">'cache'</tt><tt class="py-op">,</tt> <tt id="link-50" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-50', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-51" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-51', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'profile_image_url'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">            <tt id="link-52" class="py-name"><a title="yatter.main.user_image" class="py-name" href="#" onclick="return doclink('link-52', 'user_image', 'link-38');">user_image</a></tt> <tt class="py-op">=</tt> <tt id="link-53" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-53', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-54', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="yatter.storage.store_disk" class="py-name" href="#" onclick="return doclink('link-55', 'store_disk', 'link-11');">store_disk</a></tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="yatter.storage.store_disk.loadImage" class="py-name" href="#" onclick="return doclink('link-56', 'loadImage', 'link-42');">loadImage</a></tt><tt class="py-op">(</tt><tt class="py-string">'cache'</tt><tt class="py-op">,</tt><tt id="link-57" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-57', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-58', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'profile_image_url'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">        <tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">debug</tt><tt class="py-op">(</tt><tt class="py-string">"yatter.main.__init__()::CACHED_USER_IMAGE"</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">         </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">    <tt class="py-comment">#caching the image and saving the tweet in sqlite</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-59" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-59', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-60" class="py-name"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-60', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="yatter.storage.store_sqlite" class="py-name" href="#" onclick="return doclink('link-61', 'store_sqlite', 'link-14');">store_sqlite</a></tt><tt class="py-op">.</tt><tt class="py-name">insertToDatabase</tt><tt class="py-op">(</tt><tt id="link-62" class="py-name"><a title="yatter.main.db_connection" class="py-name" href="#" onclick="return doclink('link-62', 'db_connection', 'link-25');">db_connection</a></tt><tt class="py-op">,</tt><tt class="py-string">"public_users"</tt><tt class="py-op">,</tt> <tt class="py-string">"""INSERT INTO public_users VALUES ('%s','%s','%s','%s','%s','%s','%s','%s',%d)"""</tt> <tt class="py-op">%</tt>  </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">                                                <tt class="py-op">(</tt><tt id="link-63" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-63', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-64', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'id'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-65" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-65', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-66', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'name'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-67" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-67', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-68', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'screen_name'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line">                                                 <tt id="link-69" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-69', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-70', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'description'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-71" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-71', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-72" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-72', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'location'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-73" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-73', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-74" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-74', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'profile_image_url'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">                                                 <tt id="link-75" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-75', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-76', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'url'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-77" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-77', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-78" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-78', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'protected'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-79" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-79', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-80" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-80', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'followers_count'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line">     </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">    <tt id="link-81" class="py-name"><a title="yatter" class="py-name" href="#" onclick="return doclink('link-81', 'yatter', 'link-0');">yatter</a></tt><tt class="py-op">.</tt><tt id="link-82" class="py-name"><a title="yatter.storage" class="py-name" href="#" onclick="return doclink('link-82', 'storage', 'link-10');">storage</a></tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="yatter.storage.store_sqlite" class="py-name" href="#" onclick="return doclink('link-83', 'store_sqlite', 'link-14');">store_sqlite</a></tt><tt class="py-op">.</tt><tt class="py-name">insertToDatabase</tt><tt class="py-op">(</tt><tt id="link-84" class="py-name"><a title="yatter.main.db_connection" class="py-name" href="#" onclick="return doclink('link-84', 'db_connection', 'link-25');">db_connection</a></tt><tt class="py-op">,</tt> <tt class="py-string">"public_tweets"</tt><tt class="py-op">,</tt> <tt class="py-string">"""INSERT INTO public_tweets VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s',%d)"""</tt> <tt class="py-op">%</tt> </tt>
<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line">                                                <tt class="py-op">(</tt><tt id="link-85" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-85', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-86" class="py-name" targets="Method yatter.twitter_api.tweet.tweet.getTweet()=yatter.twitter_api.tweet.tweet-class.html#getTweet"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-86', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'id'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-87" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-87', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getUser" class="py-name" href="#" onclick="return doclink('link-88', 'getUser', 'link-44');">getUser</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'id'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-89" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-89', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-90" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-90', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'created_at'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-91" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-91', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-92', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'text'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line">                                                 <tt id="link-93" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-93', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-94', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'source'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-95" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-95', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-96', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'trucated'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-97" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-97', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-98', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'in_reply_to_status_id'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">                                                 <tt id="link-99" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-99', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-100', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'in_reply_to_user_id'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-101" class="py-name"><a title="yatter.main.theTweet" class="py-name" href="#" onclick="return doclink('link-101', 'theTweet', 'link-31');">theTweet</a></tt><tt class="py-op">.</tt><tt id="link-102" class="py-name"><a title="yatter.twitter_api.tweet.tweet.getTweet" class="py-name" href="#" onclick="return doclink('link-102', 'getTweet', 'link-86');">getTweet</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'favorited'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="yatter-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Feb 19 23:26:44 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
